+2014-02-24 Daniel Colascione <dancol@dancol.org>
+
+ * keyboard.c (read_char): Close race that resulted in lost events.
+
2014-02-21 Daniel Colascione <dancol@dancol.org>
* dbusbind.c: Rename dbus-init-bus to dbus-init-bus-1.
{
c = read_decoded_event_from_main_queue (end_time, local_getcjmp,
prev_event, used_mouse_menu);
- if (end_time && timespec_cmp (*end_time, current_timespec ()) <= 0)
- goto exit;
+ if (NILP(c) && end_time &&
+ timespec_cmp (*end_time, current_timespec ()) <= 0)
+ {
+ goto exit;
+ }
+
if (EQ (c, make_number (-2)))
{
/* This is going to exit from read_char